﻿using StudentMocking.Model;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;


namespace StudentMocking.Services
{
    public interface IStudentsService
    {
        //异步添加或修改学生
        Task<Student> AddOrUpdateSutdentAnsyc(Student student);
        //根据id查找学生
        Student Student(int studentid);
        //异步加载所有学生
        Task LoadStudentAnsyc();
        //学生列表
        IEnumerable<Student> students { get; }
    }
}
